home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DTP
/
DTP_TEX
/
3239.ZIP
/
DVIMTP.ZIP
/
RULEPXL.H
< prev
next >
Wrap
Text File
|
1986-03-24
|
627b
|
23 lines
/* -*-C-*- rulepxl.h */
/*-->rulepxl*/
/**********************************************************************/
/****************************** rulepxl *******************************/
/**********************************************************************/
COORDINATE
rulepxl(number, cnvfac)/* return number of pixels in a rule */
register UNSIGN32 number;/* in DVI units */
register float cnvfac; /* conversion factor */
{
register COORDINATE n;
n = (COORDINATE)(number*cnvfac);
if ((float)n < ((float)(number))*cnvfac)
return((COORDINATE)(n+1));
else
return((COORDINATE)n);
}